package com.sk.bilibili.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 邵康
 * @date 2021/12/3 23:27
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class AppraiseInfo extends PageInfo{

    @ApiModelProperty("必要的参数")
    private Integer themId;
    @ApiModelProperty("排序参数  0点赞量  1时间  为null自然排序")
    private Integer sort;

    private static final String[] COLUMNS="praise_num,create_date".split(",");

    @ApiModelProperty("辅助参数不用管")
    public String getColumn(){
        return COLUMNS[sort];
    }

}
